import { BasicColumn, FormSchema } from '/@/components/Table';

export const useNoticesUpdateSchemaForm = (): FormSchema[] => {
  return [
    { field: 'noticeTitle', label: '', component: 'Input' },
    { field: 'noticeType', label: '', component: 'Input' },
    { field: 'noticeContent', label: '', component: 'Input' },
    { field: 'status', label: '', component: 'Input' },
    { field: 'noticeId', label: '', component: 'Input' },
  ];
};

export const useNoticesListColumns = (): BasicColumn[] => {
  return [
    { title: '', dataIndex: 'noticeId' },
    { title: '', dataIndex: 'noticeTitle' },
    { title: '', dataIndex: 'noticeType' },
    { title: '', dataIndex: 'noticeContent' },
    { title: '', dataIndex: 'status' },
    { title: '', dataIndex: 'createTime' },
    { title: '', dataIndex: 'creatorName' },
  ];
};

export const useNoticesSaveSchemaForm = (): FormSchema[] => {
  return [
    { field: 'noticeTitle', label: '', component: 'Input' },
    { field: 'noticeType', label: '', component: 'Input' },
    { field: 'noticeContent', label: '', component: 'Input' },
    { field: 'status', label: '', component: 'Input' },
  ];
};
